/*
 ========================================================================
 Name        : StopWatchDocument.cpp
 Author      : Vasily Nemkov
 Copyright   : 
 Description : 
 ========================================================================
 */
#include "StopWatchDocument.h"
#include "StopWatchAppUi.h"

/**
 * @brief Constructs the document class for the application.
 * @param anApplication the application instance
 */
CStopWatchDocument::CStopWatchDocument(CEikApplication& anApplication) :
  CAknDocument(anApplication)
{
}

/**
 * @brief Completes the second phase of Symbian object construction. 
 * Put initialization code that could leave here.  
 */
void CStopWatchDocument::ConstructL()
{
}

/**
 * Symbian OS two-phase constructor.
 *
 * Creates an instance of CStopWatchDocument, constructs it, and
 * returns it.
 *
 * @param aApp the application instance
 * @return the new CStopWatchDocument
 */
CStopWatchDocument* CStopWatchDocument::NewL(CEikApplication& aApp)
{
  CStopWatchDocument* self = new (ELeave) CStopWatchDocument(aApp);
  CleanupStack::PushL(self);
  self->ConstructL();
  CleanupStack::Pop(self);
  return self;
}

/**
 * @brief Creates the application UI object for this document.
 * @return the new instance
 */
CEikAppUi* CStopWatchDocument::CreateAppUiL()
{
  return new (ELeave) CStopWatchAppUi;
}

